package com.example1.demo.myconfig;

import org.springframework.web.servlet.HandlerInterceptor;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

public class LoginInterceptor implements HandlerInterceptor{

    @Override
    public boolean preHandle(@SuppressWarnings("null") HttpServletRequest request, HttpServletResponse response, Object handler)
            throws Exception {
    
        System.out.println("LoginInterceptor is working");
        return true;            
    }
}